<!-- $Id: shop_list.htm 15898 2009-05-04 07:25:41Z liuhui $ -->

{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}
<!-- 品牌搜索 -->
{include file="shop_search.htm"}
<form method="post" action="" name="listForm">
<!-- start brand list -->
<div class="list-div" id="listDiv">
{/if}

  <table cellpadding="3" cellspacing="1">
    <tr>
      <th width="25%">{$lang.shop_title}</th>
      <th>{$lang.nick}</th>
      <th><a href="javascript:listTable.sort('level'); ">{$lang.level}</a>{$sort_level}</th>
      <th>{$lang.rate}</th>
      <th>{$lang.commission_rate}</th>
      <!--th>{$lang.created}</th-->
      <th>{$lang.item_num}</th>
      <th>{$lang.last_update}</th>
      <th><a href="javascript:listTable.sort('is_recommend'); ">{$lang.is_recommend}</a>{$sort_is_recommend}</th>
      <th>{$lang.sort_order}</th>
      <th width="130">{$lang.handler}</th>
    </tr>
    {foreach from=$shop_list item=shop}
    <tr>
      <td class="first-cell"><a href="{$shop.click_url}" target="_blank">{$shop.shop_title}</a> &nbsp; <span>{$shop.sid}</span></td>
      <td>{$shop.nick} &nbsp; <span>{$shop.user_id}</span></td>
      <td align="center">{$shop.level_img}</td>
      <td align="center">{$shop.good_num}/{$shop.total_num}</td>
      <td align="center">{$shop.commission_rate}</td>
      <!--td align="center">{$shop.created}</td-->
      <td align="center">{$shop.item_num}</td>
      <td align="center">{$shop.last_update}</td>
      <td align="center"><img src="images/{if $shop.is_recommend}yes{else}no{/if}.gif" onclick="listTable.toggle(this, 'toggle_is_recommend', {$shop.sid})" /></td>
      <td align="center"><span onclick="javascript:listTable.edit(this, 'edit_sort_order', {$shop.sid})">{$shop.sort_order}</span></td>
      <td align="center">
				<a href="item.php?act=list&nick={$shop.nick}" title="{$lang.items}">{$lang.items}</a> |
        <a href="shop.php?act=edit&id={$shop.sid}" title="{$lang.edit}">{$lang.edit}</a> |
        <a href="item_extract.php?sid={$shop.sid}" title="{$lang.extract}">{$lang.extract}</a> |
        <a href="javascript:;" onclick="listTable.remove({$shop.sid}, '{$lang.drop_confirm}')" title="{$lang.edit}">{$lang.remove}</a> 
      </td>
    </tr>
    {foreachelse}
    <tr><td class="no-records" colspan="10">{$lang.no_records}</td></tr>
    {/foreach}
    <tr>
      <td align="right" nowrap="true" colspan="6">
      {include file="page.htm"}
      </td>
    </tr>
  </table>

{if $full_page}
<!-- end brand list -->
</div>
</form>

<script type="text/javascript" language="javascript">
  <!--
  listTable.recordCount = {$record_count};
  listTable.pageCount = {$page_count};

  {foreach from=$filter item=item key=key}
  listTable.filter.{$key} = '{$item}';
  {/foreach}

  {literal}
  onload = function()
  {
      // 开始检查订单
      startCheckOrder();
  }
  {/literal}
  //-->
</script>
{include file="pagefooter.htm"}
{/if}